﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="DentScan2.WebApp.Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Вход в системата
    </h2>
    <asp:Panel runat="server" ID="pMain" DefaultButton="bLogin">
        <table class="Table" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <b>Потребителско име</b>
                </td>
                <td>
                    <asp:TextBox runat="server" ID="tbUserName" CssClass="inputNormalNoCapsLock" />
                </td>
            </tr>
            <tr>
                <td>
                    <b>Парола</b>
                </td>
                <td>
                    <asp:TextBox runat="server" ID="tbPassword" CssClass="inputNormalNoCapsLock" TextMode="Password" />
                </td>
            </tr>
            <tr>
                <td>
                    <b>Държава</b>
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlArea" DataTextField="AreaName" DataValueField="AreaId" />
                </td>
            </tr>
            <tr>
                <td>
                    <b>Език</b>
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlLanguage" AutoPostBack="true" OnSelectedIndexChanged="ddlLanguage_SelectedIndexChanged">
                        <asp:ListItem Text="Български" Value="1" Selected="True" />
                        <asp:ListItem Text="Français" Value="2" />
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
        <asp:Button runat="server" ID="bLogin" Text="Вход" CssClass="submitButton" OnClick="bLogin_Click" />
        <asp:Label ID="lError" runat="server" ForeColor="Red" Text="Некоректно потребителско име или парола"
            Visible="False"></asp:Label>
    </asp:Panel>
    <script type="text/javascript">
        $get('<%=tbUserName.ClientID%>').focus();        
    </script>
</asp:Content>
